package com.chenhao.springcloud.chenhaodesignservice.pattern.structural.flyweight;

/**
 * Description:
 *
 * @author chenhao
 * @date 2020/12/25 11:21
 */
public class Test {
    private static final  String departments[] = {"RD","QA","PM","BD"};

    public static void main(String[] args) {
        for (int i =0;i<10;i++){
            String department = departments[(int)(Math.random())*departments.length];
            Manager manager = (Manager) EmployeeFactory.getManager(department);
            manager.report();
        }
    }
}
